how to find Cartesian product

join shbcf.ru